using UnityEngine;

public class IndicatorsCar : MonoBehaviour
{
	public Material carIndicator;

	public Material tankIndicator;

	public Material boatIndicator;

	public Material motoIndicator;

	public Material helicIndicator;

	private Renderer showIndicator;

	public static IndicatorsCar init;

	private void Awake()
	{
		init = this;
	}

	private void Start()
	{
	}

	public void ShowIndicator(CarType types)
	{
		showIndicator = base.transform.GetComponent<Renderer>();
		switch (types)
		{
		case CarType.Car:
			showIndicator.material = carIndicator;
			break;
		case CarType.Boat:
			showIndicator.material = boatIndicator;
			break;
		case CarType.Helicopter:
			showIndicator.material = helicIndicator;
			break;
		case CarType.Motorcycle:
			showIndicator.material = motoIndicator;
			break;
		case CarType.Tank:
			showIndicator.material = tankIndicator;
			break;
		}
	}
}
